package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName user_message
 */
@TableName(value ="user_message")
@Data
public class UserMessage implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 删除标志
     */
    @TableField(value = "delete_flag")
    private Boolean deleteFlag;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 消息内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 会员ID
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 会员名称
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 消息状态【0->未读；1->已读；2->回收站】
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 消息标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 
     */
    @TableField(value = "message_id")
    private String messageId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}